import request from '@/utils/request'


//入库任务单

export function getRkrwdList(data) {//列表
  return request({
    url: 'rukurwd/queryRukurwdAsPage',
    method: 'post',
    data,
  })
}
//新增入库任务单


export function insertrukurwd(data) {
  return request({
    url: '/rukurwd/add',
    method: 'post',
    data,
  })
}
//更新入库任务单
export function updaterukurwd(data) {
  return request({
    url: '/rukurwd/update',
    method: 'post',
    data,
  })
}
//更新入库任务单
export function deleterukurwd(data) {
  return request({
    url: '/rukurwd/delete',
    method: 'post',
    data,
  })
}
//下发任务

export function downRWone(data) {
  return request({
    url: '/wcsgl/sendRukurwd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//更新入库任务单状态

export function updateRukurwdById(data) {//列表
  return request({
    url: '/rukurwd/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function getOneSJD(data) {//查一条
  return request({
    url: '/rukurwd/getRukurwdByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function quxiaorw(data) {//取消任务
  return request({
    url: 'shangjiad/quxiaorw',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function DengJISj(data) {//登记上架结果
  return request({
    url: 'shangjiad/shangjiaqr',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function DelsjdByid(data) {//删除上架结果
  return request({
    url: '/shangjiad/deleteShangjiadById',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}


//入库单

//修改
export function updaterukud(data) {
  return request({
    url: 'rukud/update',
    method: 'post',
    data,
  })
}
//验收
export function yanshou(data) {
  return request({
    url: 'rukud/common/yanshou',
    method: 'post',
    data,
  })
}
//验收并上架
export function yanshoubsj(data) {
  return request({
    url: 'rukud/common/yanshoubsj',
    method: 'post',
    data,
  })
}

export function queryWuziPage(data) {
  return request({
    url: '/wuzi/queryWuziPage',
    method: 'post',
    data,
  })
}


export function updateRukudStateById(data) {
  return request({
    url: '/rukud/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function queryKufangList(data) {
  return request({
    url: '/kufang/queryKufangList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getRKDList(data) {
  return request({
    url: '/rukud/queryRukudAsPage',
    method: 'post',
    data,
  })
}
export function queryRukudById(data) {
  return request({
    url: '/rukud/getRukudByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryRukudmxList(data) {
  return request({
    url: '/rukud/common/queryRukudmxList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteRukudById(data) {
  return request({
    url: '/rukud/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },

    data,
  })
}

export function insertrukud(data) {
  return request({
    url: 'rukud/add',
    method: 'post',
    data,
  })
}
export function updateRukudStatus(data) {
  return request({
    url: 'rukud/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function importRukudMx(data) {//上传调拨单明细物资
  return request({
    url: '/rukud/importRukud',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//入库调拨

export function queryPage(data) {
  return request({
    url: '/rukudbd/queryPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function save(data) {
  return request({
    url: '/rukudbd/save',
    // url: '/rukudbd/insertRukudByDbd',
    method: 'post',
    //  headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertRukudByDbd(param, data) {
  return request({
    url: '/rukudbd/insertRukudByDbd' + param,
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getOneDbd(data) {
  return request({
    url: '/rukudbd/get',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function deleteDbd(data) {
  return request({
    url: '/rukudbd/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function queryFenfajgByPara(data) {//分发结果
  return request({
    url: '/rukudbd/queryFenfajgByPara',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}


export function insertRukudbdFile(data) {//上传调拨单文件
  return request({
    url: '/rukudbd/insertRukudbdFile',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertRukudFile(data) {//上传入库单文件
  return request({
    url: '/rukud/insertRukudFile',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteFileByPara(data) {//删除调拨单文件
  return request({
    url: '/rukudbd/deleteFileByPara',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteFileByPararkd(data) {//删除调拨单文件
  return request({
    url: '/rukud/deleteFileByPara',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function downloadFileByPath(data) {//下载调拨单文件
  return request({
    url: '/rukudbd/downloadFileByPath',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function downloadFileByPathrkd(data) {//下载调拨单文件
  return request({
    url: '/rukud/downloadFileByPath',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryFileListByPara(data) {//调拨单文件列表
  return request({
    url: '/rukudbd/queryFileListByPara',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryFileListByPararkd(data) {//调拨单文件列表
  return request({
    url: '/rukud/queryFileListByPara',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function importRukudbdMx(data) {//上传调拨单明细物资
  return request({
    url: '/rukudbd/importRukudbd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function rukudbdsh(data) {//入库调拨单审核
  return request({
    url: '/rukudbd/rukudbdsh',
    method: 'post',
    //headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

//重置任务
export function resetTask(data) {
  return request({
    url: '/wcsgl/rukurenwdSuccess',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
